package cn.jiyun.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author: 小周
 * @Package: cn.jiyun.p12pojoday13
 * @Project: 2210A-project1
 * @name: day13PinLunToMongoDB
 * @Date: 2023/9/7 19:57
 * @Filename: day13PinLunToMongoDB
 */
@Data
@Document("day13zuoye")
public class Pinlun implements Serializable {
    private String id;
    private String context;
    private Integer cid;
    private Integer eid;
    private String ename;
    private String photo;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date joindate;
    private String pid;
    private List<Pinlun> list;

}
